
#define XTAL_FREQ 8MHZ
#include <pic.h>
#include "delay.h"

__CONFIG (0x3d7a);








//===============================================
//===============================================
//===============================================
//===============================================
void main(void)
{
TRISB=0x00;
TRISC=0x07;

di();


while (1)
	{

lbl_ng:
	PORTB=0b00100000;
	//asm("nop");
     PORTB=0b00100000;
     PORTB=0b00100000;
     PORTB=0b00100000;

     PORTB=0b00100001;
     PORTB=0b00100001;
     PORTB=0b00100001;
     PORTB=0b00100001;

     PORTB=0b00100000;
     asm("nop");

     PORTB=0b00100000;
     PORTB=0b00100000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00100000;
     PORTB=0b00100000;

     PORTB=0b00100000;

     PORTB=0b01100000;
     PORTB=0b01100000;
     PORTB=0b01100000;
     PORTB=0b01100000;

     PORTB=0b00100000;
     PORTB=0b00100000;
     PORTB=0b00100000;
     PORTB=0b00100000;
     PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
     PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
     PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;
	PORTB=0b00100000;


     if((PORTC&0x07)==0) goto lbl_ng;


lbl_blk:
	PORTB=0b00010000;
	//asm("nop");
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010001;
     PORTB=0b00010001;
     PORTB=0b00010001;
     PORTB=0b00010001;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	asm("nop");
//	PORTB=0b00010000;
//	PORTB=0b00010000;


     if((PORTC&0x07)==0x01) goto lbl_blk;



lbl_gr:
	PORTB=0b00010010;
	//asm("nop");
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010011;
     PORTB=0b00010011;
     PORTB=0b00010011;
     PORTB=0b00010011;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
//	PORTB=0b00010010;
//	PORTB=0b00010010;
     asm("nop");

     if((PORTC&0x07)==2) goto lbl_gr;


lbl_wt:
	PORTB=0b00011000;
	//asm("nop");
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00011001;
     PORTB=0b00011001;
     PORTB=0b00011001;
     PORTB=0b00011001;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;


     if((PORTC&0x07)==3) goto lbl_wt;










lbl_plbl:
	PORTB=0b00010000;
	//asm("nop");
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010001;
     PORTB=0b00010001;
     PORTB=0b00010001;
     PORTB=0b00010001;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	asm("nop");
	PORTB=0b00010000;
	PORTB=0b00010000;



	PORTB=0b00010000;
	//asm("nop");
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	asm("nop");
	PORTB=0b00010100;
	PORTB=0b00010100;



	PORTB=0b00010100;
	//asm("nop");
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	asm("nop");
	PORTB=0b00010000;
	PORTB=0b00010000;


	PORTB=0b00010000;
	//asm("nop");
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
     PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	PORTB=0b00010000;
	asm("nop");
//	PORTB=0b00010000;
//	PORTB=0b00010000;


     if((PORTC&0x07)==0x04) goto lbl_plbl;





lbl_plgr:
	PORTB=0b00010010;
	//asm("nop");
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010011;
     PORTB=0b00010011;
     PORTB=0b00010011;
     PORTB=0b00010011;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     asm("nop");





	PORTB=0b00010010;
	//asm("nop");
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     asm("nop");



	PORTB=0b00010100;
	//asm("nop");
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     asm("nop");




	PORTB=0b00010010;
	//asm("nop");
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
     PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
	PORTB=0b00010010;
//	PORTB=0b00010010;
//	PORTB=0b00010010;
     asm("nop");

     if((PORTC&0x07)==5) goto lbl_plgr;







lbl_plwt:
	PORTB=0b00011000;
	//asm("nop");
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00011001;
     PORTB=0b00011001;
     PORTB=0b00011001;
     PORTB=0b00011001;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;








	PORTB=0b00011000;
	//asm("nop");
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
     PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;
	PORTB=0b00010100;






	PORTB=0b00010100;
	//asm("nop");
     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010100;

     PORTB=0b00010100;
     PORTB=0b00010100;
     PORTB=0b00010000;
     PORTB=0b00010000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;





	PORTB=0b00011000;
	//asm("nop");
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;

     PORTB=0b00010000;
     asm("nop");

     PORTB=0b00000000;
     PORTB=0b00000000;
     asm("nop");
     asm("nop");
     asm("nop");
     asm("nop");
     PORTB=0b00000000;
     PORTB=0b00000000;

     PORTB=0b00010000;

     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;
     PORTB=0b01010000;

     PORTB=0b00010000;

     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
     PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;
	PORTB=0b00011000;


     if((PORTC&0x07)==6) goto lbl_plwt;

	}

}


